// $(".leftUnder-shopCar").click(function () {
//     var tittle = $(".tab-details-title-h4").html()
//     var content = $(".tab-details-title-p").html()
//     var price = $(".price-left-top-p").text()
//     var tex = document.getElementById("leftUnder-num-input");
//     var num = tex.value;
//     var img_url=$(".tab-imgTop-img").attr("src")
//     console.log(tittle, content, price, num,img_url)
// })


$(".leftUnder-shopCar").on("click", function (e) {
            e.preventDefault();
            var tittle = $(".tab-details-title-h4").html()
            var content = $(".shop-leftTop-div2-p").text()
            var price = $(".price-left-top-p-s").html()
            var tex = document.getElementById("leftUnder-num-input");
            var num = tex.value;
            var img_url=$(".tab-imgTop-img").attr("src")

            // console.log(typeof(price),price)
            // console.log(num)
            $.ajax({
                    url: "http://localhost/yiguoshengxian/xiangqingye/comment/03.php",
                    data: {
                        // article_id:1,
                        tittle: tittle,
                        content: content,
                        price:price,
                        num:num,
                        img_url:img_url
                    },
                    type: "POST",
                    dataType: "json",
                    success:function(){
                        console.log(num)
                    }
                })
})